# 遍历

# 1.使用for循环来遍历列表
# a=[1,2,3,4,5]
# for elem in a:
#     print(elem)
#     elem = elem + 10
# print(a)



# 2.使用 for循环遍历，通过下标的方式！
# a=[1,2,3,4,5]
# for i in range(0,len(a)):
#     print(a[i])
#     a[i] =a[i] +10
# print(a)


# 3.使用whiLe循环通过下标遍历
a=[1,2,3,4,5]
i = 0
while i<len(a):
    print(a[i])
    i +=1
print(a)